import React, { Component } from 'react'
import { Button, Input } from 'antd'
import styles from './style.less'
import cookie from 'js-cookie'

export default class extends Component {
  login = () => {
    cookie.set('token', '123')
    this.props.history.push('/')
  }
  render() {
    return (
      <div className={styles.root}>
        <Input size="large" />
        <Input type="password" size="large" />
        <Button type="primary" size="large" onClick={this.login}>
          登陆
        </Button>
      </div>
    )
  }
}
